//
//  Header.h
//  Zhiche-Carriage
//
//  Created by LeeBruce on 16/6/6.
//  Copyright © 2016年 LeeBruce. All rights reserved.
//

#ifndef Header_h
#define Header_h

#define screenWidth [UIScreen mainScreen].bounds.size.width
#define screenHeight [UIScreen mainScreen].bounds.size.height
#define Main_Width [UIScreen mainScreen].bounds.size.width
#define Main_height [UIScreen mainScreen].bounds.size.height

#define Font(a)     [UIFont systemFontOfSize:a * kWidth];

#pragma mark 宽高比cc

#define kWidth  screenWidth/320.0
#define kHeight screenHeight/568.0

#define cellHeight  43 * kHeight

#define phoneNumber @"400-880-9009"
//颜色
#define Color_RGB(a,b,c,d) [UIColor colorWithRed:(a)/255.0 green:(b)/255.0 blue:(c)/255.0 alpha:(d)]

#define WhiteColor [UIColor whiteColor]
#define BlackColor [UIColor blackColor]

#define YellowColor  Color_RGB(253,131,42,1)//主题黄

#define RedColor  Color_RGB(254,81,62,1)//状态红
#define GrayColor  Color_RGB(236,236,236,1)//headerView 灰
#define LineGrayColor  Color_RGB(210,210,210,1)//分割线 灰
#define fontGrayColor  Color_RGB(157,157,157,1)// 字体浅灰
#define littleBlackColor  Color_RGB(79,79,79,1)// 字体浅黑
#define carScrollColor   Color_RGB(119, 119, 119, 1)//宝马－2辆
#define rearrangeBtnColor   Color_RGB(254, 242, 227, 1)//重新发布
#define BlackTitleColor Color_RGB(14, 14, 14, 1)//发布信息 黑色体 地址、时间、车型
#define BtnBorderColor  Color_RGB(253,217,185,1)// 按钮外环
//80, 80, 80
#define BtnTitleColor  Color_RGB(80,80,80,1)// 下单发运时间按钮
#define AddressSCtitleColor Color_RGB(109, 109, 109,1)//地址删除按钮
#define FieldPlacerColor  Color_RGB(181, 181,188,1)//下单发运 汽车数量背景字体
#define AddCarColor  Color_RGB(34,34,34,1)//增加车辆
#define AddCarNameBtnColor  Color_RGB(199,199,199,1)//车名称

#define headerBottomColor  Color_RGB(252,252,252,1) //运单上下颜色

//#define GrayColor Color_RGB(149,149,149,1)
#define RGBACOLOR(a,b,c,d) Color_RGB(a,b,c,d)
//
#define headerTitleColor Color_RGB(255, 79, 61,1)//查看报价上面的分钟
#define headerBackViewColor Color_RGB(252, 252, 252,1)//查看报价上面背景颜色


//
//#define LineGrayColor [UIColor colorWithRed:200/255.0 green:199/255.0 blue:204/255.0 alpha:1]
//
//
//#define GrayColor Color_RGB(149,149,149,1)
#define RGBACOLOR(a,b,c,d) Color_RGB(a,b,c,d)
//字体大小
#define FontOfSize9  9.0
#define FontOfSize10  10.0
#define FontOfSize11  11.0
#define FontOfSize12  12.0
#define FontOfSize13  13.0
#define FontOfSize14  14.0
#define FontOfSize15  15.0
#define FontOfSize16  16.0
#define FontOfSize17  17.0
#define FontOfSize18  18.0
#define FontOfSize19  19.0

//用户类型
#define userType @"60"
#define Button_height 40 * kHeight

//李忙
//#define Main_interface @"http://lmproject.ittun.com/"

//开发接口
//#define Main_interface @"http://220.249.50.163/stan/"

//测试
//#define Main_interface @"http://www.huiyunche.cn/stanuat/"
//#define Main_interface @"http://220.249.50.163/stanuat/"

//正式环境
//#define Main_interface @"http://sendbydriveruat.huiyunche.cn/"



#if CeShi
// 测试版需要执行的代码2
#define Main_interface @"http://220.249.50.163/stanuat/"

#elif KaiFa
//#define Main_interface @"http://220.249.50.163/stan/"
#define Main_interface @"http://220.249.50.163/sendbydriver/"

#else
// 默认生产版需要执行的代码


//内网


//#define Main_interface @"http://220.249.50.163/supplier"
#define Main_interface  @"http://220.249.50.163/supplieruat/"
//#define Main_interface @"http://supplier.huiyunche.cn/"

#endif



#define STR_F2(p1, p2)     [NSString stringWithFormat:@"%@%@", p1, p2]
#define STR_F3(p1, p2,p3)     [NSString stringWithFormat:@"%@%@%@", p1, p2,p3]
#define STR_F4(p1, p2, p3,p4) [NSString stringWithFormat:@"%@%@%@%@", p1, p2, p3,p4]

/*
 首页
 */

//轮播图
#define banner_list_Url STR_F2(Main_interface,@"banner/list")
//首页用户状态waybill/pageinfo
#define waybill_pageinfo_Url STR_F2(Main_interface,@"waybill/pageinfo")

//获取路线信息
#define sub_routes STR_F2(Main_interface,@"sub/routes")
//上报运力
#define sub_cwlist STR_F2(Main_interface,@"sub/cwlist")

//出车记录
#define waybill_done_Url STR_F2(Main_interface,@"sub/done")

/*
 运单列表
 */

//待接单
#define mission_waiting STR_F2(Main_interface,@"sub/waiting")

//执行中
#define mission_execution STR_F2(Main_interface,@"sub/execution")

//已完成
#define mission_done STR_F2(Main_interface,@"sub/complete")

//运单详情
#define mission_detail STR_F2(Main_interface,@"sub")

//在途信息
#define sub_logistics STR_F2(Main_interface,@"sub/logistics")

/* 
 
 个人中心
 
 */

//用户个人信息
#define  user_info STR_F2(Main_interface,@"user")

//修改个人信息
#define user_modify   STR_F2(Main_interface,@"user/modify")
//异常回单

#define sub_anomalywaybill   STR_F2(Main_interface,@"sub/anomalywaybill")

//我的司机
//1、全部司机

#define sub_drivers   STR_F2(Main_interface,@"sub/drivers")

//2、空闲司机
#define sub_freedrivers   STR_F2(Main_interface,@"sub/freedrivers")

//3、编辑司机
#define sub_editdriver   STR_F2(Main_interface,@"sub/editdriver")

//4、删除司机
#define sub_deletedriver   STR_F2(Main_interface,@"sub/deletedriver")

//5、选择司机

#define sub_driver_specify   STR_F2(Main_interface,@"sub/driver/specify")
//6、增加司机

#define sub_adddriver   STR_F2(Main_interface,@"sub/adddriver")
//7、准驾车型
#define licensetype_list   STR_F2(Main_interface,@"licensetype/list")


//客服中心
#define about_customer   STR_F2(Main_interface,@"about/customer")



/* 
 
 common
 
 */

//七牛其他照片token
#define qiniu_token  STR_F2(Main_interface,@"qiniu/upload/ticket")

//七牛头像token
#define picture_qiniu_token  STR_F2(Main_interface,@"qiniu//uploadlogo/ticket")

//登录
#define login_codeLogin STR_F2(Main_interface,@"login/userlogin")
//注册
#define registers STR_F2(Main_interface,@"sign")

//忘记密码
#define forgetpassword STR_F2(Main_interface,@"login/resetpwd")
//注册获取验证吗
#define  get_capture STR_F2(Main_interface,@"sign/captcha")

//忘记密码获取验证吗
#define  get_capture_forget STR_F2(Main_interface,@"login/resetcaptcha")

// 登录成功返回token
#define  login_token @"login_token"

#define  application_json @"application/json"



/*
 
 暂时不用
 
 */

//上线排队
#define driver_online_Url STR_F2(Main_interface,@"user/online")
//取消排队
#define user_offline_Url STR_F2(Main_interface,@"user/offline")

//获取排队情况
#define driver_queue_Url STR_F2(Main_interface,@"user/queue")

//查询账单列表
#define Find_BillList_Url STR_F2(Main_interface,@"/accntDetail/monthdetails")

//查询账单明细列表
#define Find_BillDetails_Url STR_F2(Main_interface,@"/bill/details")
//账单结算
#define Find_settlement_Url STR_F2(Main_interface,@"/bill/settlement")

//待报价列表
#define bequoted_Url STR_F2(Main_interface,@"waybill/nograb")
//已报价列表   
#define already_Url STR_F2(Main_interface,@"waybill/nograb")
//已报价详情
#define roder_bid_Url STR_F2(Main_interface,@"order/bid")
//未报价运单详情order
#define roder_order_Url STR_F2(Main_interface,@"waybill")
//我要接单
#define waybill_grab_Url STR_F2(Main_interface,@"waybill/grab")

//我要报价  返回的保险费
#define feeinfo_Url STR_F2(Main_interface,@"order/feeinfo")
//费用类型列表
#define feetype_list_Url STR_F2(Main_interface,@"feetype/list")
//确认报价create
#define create_Url STR_F2(Main_interface,@"quote/create")
//订单详情order
#define order_Url STR_F2(Main_interface,@"order")
//任务列表
#define task_Url STR_F2(Main_interface,@"order/task")
//行程上报
#define journey_Url STR_F2(Main_interface,@"journey/add")

//司机头像和接单数
#define journeypageinfo_Url STR_F2(Main_interface,@"journey/journeypageinfo")

//gps地址跟踪
#define trail_Url STR_F2(Main_interface,@"user/position")

//前往提车
#define departure_Url STR_F2(Main_interface,@"order/departure")
//确定提车详情
#define extractdetail_Url STR_F2(Main_interface,@"order/extractdetail")
//确定交车详情
#define deliverydetail_Url STR_F2(Main_interface,@"order/deliverydetail")


//司机活跃度 行程onlineinfo
#define onlineinfo STR_F2(Main_interface,@"complex/onlineinfo")


//用户注册 服务协议
#define templates_Url STR_F2(Main_interface,@"templates/cms/user-protocol-view.html")
//车辆运输服务协议
#define  transport_agreement  STR_F2(Main_interface,@"templates/cms/transport-agreement.html")
//运输说明
#define  transport_explain  STR_F2(Main_interface,@"templates/cms/transport-explain.html")
//钱包说明
#define  wallet_explain  STR_F2(Main_interface,@"templates/cms/wallet-explain.html")
//关于慧运车
#define  center_about  STR_F2(Main_interface,@"templates/cms/about.html")


/**
运单接口
 */
//任务列表
#define mission_list STR_F2(Main_interface,@"order/task")

//运单详情
//#define mission_detail STR_F2(Main_interface,@"waybill")

//运单详情
#define waybill_list STR_F2(Main_interface,@"waybill/list")

//下线
#define user_offLine STR_F2(Main_interface,@"user/modifyuserstatus")
//余额信息
#define user_balances STR_F2(Main_interface,@"accntLedger/balances")
//交易记录
#define user_trade STR_F2(Main_interface,@"accntDetail/details")
//检测token是否过期
#define token_check  STR_F2(Main_interface,@"user/check")
/**
 *
 *  提现密码
 */

//验证原始密码
#define check_pwd STR_F2(Main_interface,@"accntLedger/check/pwd")

//输入新密码
#define update_pwd STR_F2(Main_interface,@"accntLedger/update/pwd")
//忘记密码
#define set_password STR_F2(Main_interface,@"accntLedger/set/password")

//获取车辆属性（长宽高）
#define truck_length_width STR_F2(Main_interface,@"code/truck/listtrucksize")

//获取车辆属性参数

#define truck_info STR_F2(Main_interface,@"code/truck/attributes")

//修改车辆信息
#define update_truckinso STR_F2(Main_interface,@"truckinfo/update")

//车辆信息完善
#define truckinfo_add STR_F2(Main_interface,@"truckinfo/add")

//司机信息
#define driver_info STR_F2(Main_interface,@"driverinfo/list")
//司机认证
#define driver_info_save STR_F2(Main_interface,@"driverinfo/save")
//查询当前车辆信息
#define find_truckinfo STR_F2(Main_interface,@"truckinfo")
//认证车辆信息
#define truckinfo_save STR_F2(Main_interface,@"truckinfo/save")
//查询当前用户车辆审核状态
#define truckinfo_status STR_F2(Main_interface,@"truckinfo/status")

//我的银行卡列表
#define bankcard_list STR_F2(Main_interface,@"cash/list")
//添加银行卡
#define bind_bankcard STR_F2(Main_interface,@"cash/bind")
//解绑银行卡
#define unbind_bankcard STR_F2(Main_interface,@"cash/unbind")

//提现
#define cost_cash STR_F2(Main_interface,@"cash/cost")

//检测银行卡类型
#define check_bankcard STR_F2(Main_interface,@"cash/check")
//判断用户是否已经设置提现密码
#define exist_pwd STR_F2(Main_interface,@"accntLedger/exist/pwd")
//长跑线路列表
#define often_line STR_F2(Main_interface,@"addr/list")

//确认发车
#define waybill_start STR_F2(Main_interface,@"waybill/start")

//确认交车
#define waybill_delivery STR_F2(Main_interface,@"waybill/delivery")

//上报提车照片
#define stan_waybill_send STR_F2(Main_interface,@"waybill/send")
//提车照片查询
#define stan_waybill_expic STR_F2(Main_interface,@"waybill/expic")
//上报交车照片
#define stan_waybill_delivery STR_F2(Main_interface,@"waybill/delivery")
//交车照片查询
#define stan_waybill_depic STR_F2(Main_interface,@"waybill/depic")
//积分查询
#define score_details STR_F2(Main_interface,@"scores/details")
//查询手续费
#define with_drawfee STR_F2(Main_interface,@"accntLedger/withdrawfee")

//积分规则
#define score_rule STR_F2(Main_interface,@"templates/cms/integral-rule.html")



#endif /* Header_h */
